﻿#ifndef REGISTER_H
#define REGISTER_H
#pragma once
#include <QWidget>

namespace Ui {
class Register;
}

class Register : public QWidget
{
    Q_OBJECT

public:
    explicit Register(QWidget *parent = nullptr);
    ~Register();

    void mousePressEvent(QMouseEvent *event);//鼠标点击
    void mouseMoveEvent(QMouseEvent *event);//鼠标移动
    void mouseReleaseEvent(QMouseEvent *event);//鼠标释放
private slots:
    void on_toolButton_clicked();

    void on_pushButton_clicked();

private:
    Ui::Register *ui;
    bool isPressedWidget;//isPressedWidget和last用来控制窗口移动
    QPoint last;
};

#endif // REGISTER_H
